﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SCADA_SANEST.Models.Line_2
{
    public static class Npc2SignalMap
    {
        public static List<PlcSignal> GetSignals()
        {
            return new List<PlcSignal>
            {
                new PlcSignal { Name = "BT_KHAN", Type = PlcDataType.Bool, Address = "I0.1" },
                new PlcSignal { Name = "BT_START", Type = PlcDataType.Bool, Address = "I0.0" },
                new PlcSignal { Name = "BT_STOP", Type = PlcDataType.Bool, Address = "I0.2" },
                new PlcSignal { Name = "BT_RESET", Type = PlcDataType.Bool, Address = "I0.3" },
                new PlcSignal { Name = "BT_LEN_THANG 1", Type = PlcDataType.Bool, Address = "I0.4" },
                new PlcSignal { Name = "BT_XUONG_THANG 1", Type = PlcDataType.Bool, Address = "I0.5" },
                new PlcSignal { Name = "CB_GIAM_TOC_THANG 1", Type = PlcDataType.Bool, Address = "I0.6" },

                //new PlcSignal { Name = "CB_DUOI_THANG 1", Type = PlcDataType.Bool, Address = "I1.1" },
                //new PlcSignal { Name = "CB_TREN_THANG 1", Type = PlcDataType.Bool, Address = "I1.2" },
                //new PlcSignal { Name = "TH_LOI_THANG 1", Type = PlcDataType.Bool, Address = "I1.3" },
                //new PlcSignal { Name = "BT_KHAN_THANG 1", Type = PlcDataType.Bool, Address = "I1.4" },

                //new PlcSignal { Name = "BT_LEN_THANG 2", Type = PlcDataType.Bool, Address = "I2.1" },
                //new PlcSignal { Name = "BT_XUONG_THANG 2", Type = PlcDataType.Bool, Address = "I2.2" },
                //new PlcSignal { Name = "CB_GIAM_TOC_THANG 2", Type = PlcDataType.Bool, Address = "I2.3" },
                //new PlcSignal { Name = "CB_DUOI_THANG 2", Type = PlcDataType.Bool, Address = "I2.6" },
                //new PlcSignal { Name = "CB_TREN_THANG 2", Type = PlcDataType.Bool, Address = "I2.7" },

                //new PlcSignal { Name = "TH_LOI_THANG 2", Type = PlcDataType.Bool, Address = "I3.0" },
                //new PlcSignal { Name = "BT_KHAN_THANG 2", Type = PlcDataType.Bool, Address = "I3.1" },
                //new PlcSignal { Name = "CB_VAN_DAY_NAU_DI", Type = PlcDataType.Bool, Address = "I3.2" },
                //new PlcSignal { Name = "CB_VAN_NAU_DI", Type = PlcDataType.Bool, Address = "I3.3" },
                //new PlcSignal { Name = "CB_VAN_DAY_HOI_NAU", Type = PlcDataType.Bool, Address = "I3.4" },
                //new PlcSignal { Name = "CB_VAN_NAU_HOI", Type = PlcDataType.Bool, Address = "I3.5" },
                //new PlcSignal { Name = "CB_VAN_PT_DI_DC", Type = PlcDataType.Bool, Address = "I3.6" },
                //new PlcSignal { Name = "CB_VAN_DAY_NAU", Type = PlcDataType.Bool, Address = "I3.7" },

                //new PlcSignal { Name = "CB_VAN_DAY_PT", Type = PlcDataType.Bool, Address = "I4.0" },
                //new PlcSignal { Name = "CB_VAN_DAY_DC", Type = PlcDataType.Bool, Address = "I4.1" },
                //new PlcSignal { Name = "TH_LOI_KHUAY_NAU", Type = PlcDataType.Bool, Address = "I4.2" },
                //new PlcSignal { Name = "TH_LOI_KHUAY_PT", Type = PlcDataType.Bool, Address = "I4.3" },
                //new PlcSignal { Name = "TH_LOI_KHUAY_DC", Type = PlcDataType.Bool, Address = "I4.4" },
                //new PlcSignal { Name = "TH_LOI_BOM_LY_TAM", Type = PlcDataType.Bool, Address = "I4.5" },
                //new PlcSignal { Name = "TH_CHIET_L2", Type = PlcDataType.Bool, Address = "I4.6" },

                //new PlcSignal { Name = "KHOI_TONG", Type = PlcDataType.Bool, Address = "Q0.0" },
                //new PlcSignal { Name = "LEN_THANG 1", Type = PlcDataType.Bool, Address = "Q0.1" },
                //new PlcSignal { Name = "XUONG _THANG 1", Type = PlcDataType.Bool, Address = "Q0.2" },
                //new PlcSignal { Name = "GIAM_TOC_THANG 1", Type = PlcDataType.Bool, Address = "Q0.3" },
                //new PlcSignal { Name = "THANG_THANG 1", Type = PlcDataType.Bool, Address = "Q0.5" },
                //new PlcSignal { Name = "LEN_THANG 2", Type = PlcDataType.Bool, Address = "Q0.6" },
                //new PlcSignal { Name = "XUONG_THANG 2", Type = PlcDataType.Bool, Address = "Q0.7" },

                //new PlcSignal { Name = "GIAM_TOC_THANG 2", Type = PlcDataType.Bool, Address = "Q1.0" },

                //new PlcSignal { Name = "THANG_THANG 2", Type = PlcDataType.Bool, Address = "Q2.0" },
                //new PlcSignal { Name = "BOM_LY_TAM", Type = PlcDataType.Bool, Address = "Q2.1" },
                //new PlcSignal { Name = "BM1_PT DI DC", Type = PlcDataType.Bool, Address = "Q2.3" },
                //new PlcSignal { Name = "BM2_DC DI CHIET L2", Type = PlcDataType.Bool, Address = "Q2.4" },
                //new PlcSignal { Name = "VAN_GIAI_NHIET", Type = PlcDataType.Bool, Address = "Q2.5" },
                //new PlcSignal { Name = "VAN_CAP_HOI", Type = PlcDataType.Bool, Address = "Q2.6" },
                //new PlcSignal { Name = "VAN KN_VAN CAP NUOC", Type = PlcDataType.Bool, Address = "Q2.7" },

                //new PlcSignal { Name = "VAN KN_VAN NAU DI PT", Type = PlcDataType.Bool, Address = "I3.0" },
                //new PlcSignal { Name = "VAN KN_VAN PT HOI NAU", Type = PlcDataType.Bool, Address = "I3.1" },
                //new PlcSignal { Name = "VAN KN_VAN PT DI DC", Type = PlcDataType.Bool, Address = "I3.2" },
                //new PlcSignal { Name = "KHUAY_NAU", Type = PlcDataType.Bool, Address = "Q3.3" },
                //new PlcSignal { Name = "KHUAY_PT", Type = PlcDataType.Bool, Address = "Q3.4" },
                //new PlcSignal { Name = "KHUAY_DC", Type = PlcDataType.Bool, Address = "Q3.5" },
                //new PlcSignal { Name = "XANH_NAU", Type = PlcDataType.Bool, Address = "Q3.6" },
                //new PlcSignal { Name = "VANG_NAU", Type = PlcDataType.Bool, Address = "Q3.7" },

                new PlcSignal { Name = "DO_NAU", Type = PlcDataType.Bool, Address = "Q4.0" },
                new PlcSignal { Name = "XANH_PT", Type = PlcDataType.Bool, Address = "Q4.1" },
                new PlcSignal { Name = "VANG_PT", Type = PlcDataType.Bool, Address = "Q4.2" },
                new PlcSignal { Name = "DO_PT", Type = PlcDataType.Bool, Address = "Q4.3" },
                new PlcSignal { Name = "XANH_DC", Type = PlcDataType.Bool, Address = "Q4.4" },
                new PlcSignal { Name = "DO_DC", Type = PlcDataType.Bool, Address = "Q4.5" },
                new PlcSignal { Name = "TH_GIAI_NHIET", Type = PlcDataType.Bool, Address = "Q4.6" },

                new PlcSignal { Name = "M_CAI DAT TOC DO CANH KHUAY", Type = PlcDataType.Real, Address = "MD88" },
            };
        }
    }
}
